package fr.esiag.isidis.pdsTeam.beans;

import java.util.Observable;

public class EtatTrain extends Observable{
	int x;int y;Boolean right;
	int station;
	int idT;
	boolean terminus;
	public EtatTrain(){
	}
	
	public int getX() {
		return x;
	}
	public int getY() {
		return y;
	}
	public Boolean getRight() {
		return right;
	}
	public void change(Integer x, Integer y, Boolean right, int station,int idT,boolean terminus){
		this.x=x;
		this.y=y;
		this.right=right;
		this.idT=idT;
		this.station=station;
		this.terminus=terminus;
		super.setChanged();
		super.notifyObservers();
	}

	public int getStation() {
		return station;
	}

	public boolean isTerminus() {
		return terminus;
	}

	public int getIdT() {
		return idT;
	}
}
